#ifndef TEXTUREBOX_H_
#define TEXTUREBOX_H_
#include "Vector2D.h"
#include "Vertex.h"
#include "TextureManager.h"
#include "Tile.h"

class TextureBox
{
	Vector2D size;
	Vertex vertices[4];
	bool holdingControlPoint[4];
	Tile * tile;
	int rotation;
	
	public:
	TextureBox();
	TextureBox(Tile * tile, Vector2D size);
	~TextureBox();
	
	void Draw();
	
	bool Click(Vector2D boneSpaceSpot);
	void Drag(Vector2D boneSpaceSpot);
	void SetTile(Tile * tile);
	char * GetTag();
	Tile * GetTile();
	Vector2D GetSize();
	void RotateClockwise();
	void RotateAntiClockwise();
};
#endif /*TEXTUREBOX_H_*/
